<?php
/* @var $this InstrumentController */
/* @var $data Instrument */
?>

<div class="view">
    <table class="table">
        <tbody>
            <tr>
                <td rowspan=8 width="330px">
                    <img src="<?php echo yii::app()->baseUrl.'/'.$data->resources->description.$data->resources->fileName?>" width=300px/>
                </td>
                <td colspan=2>
                    <a href="<?php echo yii::app()->baseUrl.'/instrument/view/'.$data->instrument_id?>"><h4><?php echo $data->title?></h4></a>
                </td>
                <td rowspan=8 style="text-align:center">
                    <?php echo CHtml::link('查看详情', array('instrument/view','id'=>$data->instrument_id), array('class'=>'btn btn-info'));?><br style="margin-bottom:15px" />
                </td>

            </tr>
            <tr>
                <td>
	                <b><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
                </td>
                <td>
                    <?php echo $data->getEnabledLable();?>
                </td>
            </tr>
            <tr>
                <td>
	                <b><?php echo CHtml::encode($data->getAttributeLabel('model')); ?>:</b>
                </td>
                <td>
                    <?php echo $data->model;?>
                </td>
            </tr>
            <tr>
                <td>
	                <b><?php echo CHtml::encode($data->getAttributeLabel('contacts')); ?>:</b>
                </td>
                <td>
                    <?php echo $data->contacts;?>
                </td>
            </tr>
            <tr>
                <td>
	                <b><?php echo CHtml::encode($data->getAttributeLabel('stock')); ?>:</b>
                </td>
                <td>
                    <?php echo $data->stock;?>
                </td>
            </tr>
            <tr>
                <td>
	                <b><?php echo CHtml::encode($data->getAttributeLabel('place')); ?>:</b>
                </td>
                <td>
                    <?php echo $data->place;?>
                </td>
            </tr>
        </tbody>
    </table>
</div>
